package com.xdf.zipperdye.dao.business;

import com.xdf.zipperdye.model.Plan;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface PlanMapper {
    int deleteByPrimaryKey(Integer iid);

    int insert(Plan record);

    int insertSelective(Plan record);

    Plan selectByPrimaryKey(Integer iid);

    int updateByPrimaryKeySelective(Plan record);

    int updateByPrimaryKey(Plan record);

    List<Plan> getBetweenDate(@Param("sdate") Date sdate,@Param("edate") Date edate);

    Plan getLast();

    List<Plan> getPlan8PidState(@Param("parentId") Integer parentId,@Param("state") Integer state);
    List<Plan> getPlan8OrderIdState(@Param("iid") Integer iid,@Param("state") Integer state);

}